home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / showdevs.zip / GETLOL.C < prev    next >
C/C++ Source or Header  |  1989-03-11  |  383b  |  20 lines

  1.  
  2. /* This file contains a definition of the getlol() function in C.
  3.    See the file GETLOL.ASM for a description of what this file does.  */
  4.  
  5. #include <dos.h>
  6.  
  7. unsigned char far *getlol()
  8. {
  9.   union REGS regs;
  10.   struct SREGS segs;
  11.   void far *p;
  12.  
  13.   regs.h.ah = 0x52;
  14.   int86x(0x21,®s,®s,&segs);
  15.   FP_SEG(p) = segs.es;
  16.   FP_OFF(p) = regs.x.bx;
  17.   return (p);
  18. }
  19.  
  20.